package com.lz.springboot.disconf.control;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lz.springboot.disconf.config.PriceConfig;
import com.lz.springboot.disconf.config.JedisConfig;

@RestController  
public class IndexController {
	
	
    @Autowired  
    private PriceConfig priceService;  
    @Autowired  
    private JedisConfig redisService;  
      
    @RequestMapping("/index")  
    public Object getPrice() {  
        return priceService.getMoney();  
    }  
    
    
    @RequestMapping("/redisInfo")  
    public Object getRedisInfo() {  
        return redisService.getInfo();
    } 
}  